<template>
  <header-search @submit="onSubmit"></header-search>
</template>
<script>
  import HeaderSearch from '../../../components/header-search/header-search.vue'

  export default {
    components: {HeaderSearch},
    data() {
      return {}
    },
    methods: {
      onSubmit(text) {
        this.$emit('search', text)
        this.$router.back()
      }
    }
  }
</script>
